package com.hsgene.order.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.medicine.dto.DaCancerDto;
import com.hsgene.order.service.api.impl.MedicineServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @desc: 癌症药物Controller
 * @author: 江承良
 * @date: 2018/8/15 9:28
 */
@FeignClient(value = "ms-mod-medicine", path = "/v1.0/genetic/testing", fallback = MedicineServiceImpl.class)
public interface MedicineService {

    /**
     * 获取疾病信息
     *
     * @param parentId
     * @return
     */
    @GetMapping("cancer/select")
    ApiResult<List<DaCancerDto>> cancerInfoByParentId(@RequestParam(name = "parentId", required = false) String parentId);
}
